package StudyCode.summary.mycollection;

import java.nio.charset.Charset;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class ConvertAByteArrayToAPascalString {

	private final static Charset LATIN1 = Charset.availableCharsets().get("ISO-8859-1");

	public static String bytesToPascalString(byte[] data) {
		int len = (int) data[0];
		return new String(data, 0, len, LATIN1);
	}
}

